<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
    <?php if(!$userOrder){ ?>
						<div class="orderofRow">目前没有订单</div>
						<?php }else{ ?>
					
					<?php foreach ($userOrder as $ok=>$ov){?>
					<div class="orderofRow">
						<!--定单头-->
						<div class="rowTitle">
							订单总金额<strong style="margin-left:10px;">￥<?php echo $ov['count_price'];?></strong>
							<p>
								<?php echo date('Y-m-d H:i:s',$ov['order_time']);?>
							</p>
						</div>
						<!--定单主体-->
						<div class="orderContent">
							<!--订单号-->
							<div class="orderNum">
								<a href="<?php echo U('getOrderDetails',array('sn'=>$ov['order_sn']));?>" class="num" title="<?php echo $ov['order_sn'];?>"><?php echo $ov['order_sn'];?></a>
								<ul> 
									<?php foreach ($ov['goods'] as $ik=>$iv){?>
									<li><a href="<?php echo U('Details/index',array('gid'=>$iv['gid']));?>" title="<?php echo $iv['goods_name'];?>"  class="dressImg" width="50" height="50" ><img src="http://127.0.0.1/vancl_php/<?php echo $iv['goods_listimg'];?>"  /></a></li>
									<?php }?>
								</ul>
							</div>
							<!--付款-->
							<div class="orderPay">
								<ul>
									<li>应付： <span style="color:#9F0424">￥<?php echo $ov['count_price'];?></span></li>
									<li class="paystatus">
										    <?php if($ov['order_status']=='未付款'){ ?>
											<a href="<?php echo U('Cart/pay',array('sn'=>$ov['order_sn']));?>" class="nowpay">现在支付</a>
										<?php }else if($ov['order_status']=='取消订单'){ ?>
											<span>取消订单</span>
										<?php }else if($ov['order_status']=='交易完成'){ ?>
											<span>交易完成</span>
										<?php }else if($ov['order_status']=='已发货'){ ?>
											<span>已发货</span>	
										<?php }else if($ov['order_status']=='已付款'){ ?>
											<span>已付款</span>
										<?php } ?>
									</li>
									<li class="name">
										<?php echo $ov['take_man'];?> <span class="downArrow"></span>
										<div class="addresss">
											<span class="leftArrow"></span>
											<?php echo $ov['take_addr'];?>
										</div>
									</li>
								</ul>
							</div>
							<!--定单状态-->
							<div class="orderStatus">
								<ul>
									<li class="status"><?php echo $ov['order_status'];?></li>
								</ul>
							</div>
							<!--定单按钮-->
							<div class="orderBtn">
								<ul>
									    <?php if($ov['order_status']=='取消订单'){ ?>
										<li><a href="javascript:;" oid="<?php echo $ov['oid'];?>" class="hd-btn hd-btn-danger hd-btn-sm delorder">删除订单</a></li>
										<span>订单已取消</span>
										<?php }else{ ?>
										    <?php if($ov['order_status']=='已发货' ){ ?>
											<li><a href="javascript:;" oid="<?php echo $ov['oid'];?>" class="cancelOrder hd-btn-sm hd-btn-success" >确认收货</a></li>
										<?php } ?>
										    <?php if($ov['order_status']=='交易完成' ){ ?>
											<li><a href="javascript:;" oid="<?php echo $ov['oid'];?>" class="cancelOrder hd-btn-sm hd-btn-success" >去评价</a></li>
										<?php } ?>
										
										    <?php if($ov['order_status']=='未付款'){ ?>
											<li><a href="javascript:;" oid="<?php echo $ov['oid'];?>" class="cancelOrder hd-btn-sm hd-btn-danger" >取消订单</a></li>
										<?php } ?>
									<?php } ?>
									
								</ul>
							</div>
							<!--订单号结束-->
						</div>
					</div>
					<?php }?>
					<?php } ?>